package top.hmtools.ckfinder.configuration;

import javax.annotation.PostConstruct;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import top.hmtools.ckfinder.aliyunOSS.configuration.AliyunOSSConfig;

@Configuration
@ConditionalOnClass(value={AliyunOSSConfig.class})
public class AliyunOSSAutoConfig {

	@Bean
	public BaseCommandConfig aliyunOssConfig(){
		return new AliyunOSSConfig();
	}
	
	@PostConstruct
	public void init(){
		System.out.println("#########   AliyunOSSAutoConfig is inited");
	}
}
